home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15437 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  831 b 

  1. Path: ix.netcom.com!netnews
  2. From: Jane Harper <jharper@ix.netcom.com>
  3. Newsgroups: comp.lang.c
  4. Subject: How do the functions in <time.h> work?
  5. Date: Thu, 18 Apr 1996 07:38:18 -0700
  6. Organization: Netcom
  7. Message-ID: <317653DA.5066@ix.netcom.com>
  8. NNTP-Posting-Host: sjx-ca9-24.ix.netcom.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-NETCOM-Date: Thu Apr 18  7:38:09 AM PDT 1996
  13. X-Mailer: Mozilla 2.01 (Win95; U)
  14.  
  15. This is sort of a homework question, so flame away if you must ...
  16.  
  17. ...but I'm attempting to write a bit of code to access the system time 
  18. and when I call ctime() it returns January, 2014 (!!!!)  How does ctime 
  19. work (or any of the fx in <time.h> for that matter, since they're all 
  20. connected)?  What are some possible reasons for this bogus return?
  21.  
  22. TIA
  23.  
  24. Jane Harper
  25.